package database;

import java.text.SimpleDateFormat;
import java.util.Date;

public class TimeShift {
	
public TimeShift(){}

	public static String formatDate(Date date, String format, char pos) {
		SimpleDateFormat form = new SimpleDateFormat(format);
		if(pos == 'd'){
			
			return form.format(date);
			
		}else{
			
			return form.format(date);
		}
		
	}

	public static String formatTime(Date time, String format) {
		SimpleDateFormat form = new SimpleDateFormat(format);  
		return form.format(time);
	}  

}
